package com.resource.transactions.service;

import com.resource.transactions.entities.RResource;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.response.UpdateResponse;
import org.apache.solr.common.SolrDocumentList;

import java.io.IOException;

public interface SolrService {
    UpdateResponse add(RResource rResource) throws IOException, SolrServerException;

    UpdateResponse delete(String rResourceId) throws IOException, SolrServerException;

    UpdateResponse update(RResource rResource) throws IOException, SolrServerException;

    SolrDocumentList query(String resourceName) throws IOException, SolrServerException;

}
